package com.cadre.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cadre.common.utils.oldutil.PageUtils;
import com.cadre.common.utils.oldutil.Query;
import com.cadre.system.domain.officer.B41;
import com.cadre.system.mapper.B41Mapper;
import com.cadre.system.service.B41Service;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("b41Service")
/* loaded from: B41ServiceImpl.class */
public class B41ServiceImpl extends ServiceImpl<B41Mapper, B41> implements B41Service {
    @Override // com.tdqy.cadre.modular.profess.service.B41Service
    public PageUtils queryPage(Map<String, Object> params) {
        return new PageUtils(this.baseMapper.selectPage(new Query(params).getPage(), new LambdaQueryWrapper<>()));
        //（已调整完毕） TODO:换成现在系统框架中的分页查询
    }

    @Override
    public List<B41> selectList(String unitid) {
        LambdaQueryWrapper<B41> lambdaQueryWrapper = new LambdaQueryWrapper();
        lambdaQueryWrapper.eq(B41::getUnitid, unitid);
        return this.baseMapper.selectList(lambdaQueryWrapper);
    }
}
